package com.eight.course.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eight.common.pojo.EduCourse;
import com.eight.common.pojo.TbCheckCourse;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @program: qy8-education
 * @description:
 * @author: 张亚祥
 * @create: 2023-05-26 10:49
 **/
public interface CourseDao extends BaseMapper<EduCourse> {

    Page<EduCourse> findCourse(@Param("page") Page<EduCourse> page, @Param("ew") Wrapper<EduCourse> wrapper);

    Page<EduCourse> findCherckCourse(@Param("page") Page<EduCourse> page, @Param("ew") Wrapper<EduCourse> wrapper);

    int updateCourseDescription(EduCourse eduCourse);
}
